#include "rshistogramequalization.h"
#include <QObject>
#include <QString>
#include <QThread>

RSHistogramEqualization::RSHistogramEqualization()
{
}

bool RSHistogramEqualization::disPose()
{
    QString strMsg = QObject::tr("start");
    setDisPoseState( 0 , strMsg.toUtf8().data());

    for ( int i = 0 ; i < 1000 ; i++ )
    {
        QThread::msleep( 1 );
        strMsg = QObject::tr("NO:%1").arg(i + 1);
        setDisPoseState( i , strMsg.toUtf8().data());
    }

    strMsg = QObject::tr("end");
    setDisPoseState( 1000 , strMsg.toUtf8().data());

    return true;
}
